OBJECTS = lastboot.o
CC   = gcc
CFLAGS = -O
LD   = gcc

%.o: %.c
        $(CC) -c -o $@ $< $(CFLAGS)

all: lastboot

lastboot: $(OBJECTS)
        $(LD) -o $@ $(OBJECTS)

clean:
        \rm -f *.o *~ lastboot core
